package com.forum.module.chat.service;

import com.forum.framework.common.pojo.DataResult;
import com.forum.module.chat.controller.vo.ChatMessageRespVO;
import com.forum.module.chat.dal.dataobject.chat.ChatMessageDO;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.util.List;

/**
 * 功能:
 * 作者:ouyzh
 * 日期:2025/3/6 20:24
 */
public interface ChatService {
    String getAnswer(String question);

    void streamAnswer(String question, SseEmitter emitter);

    List<ChatMessageDO> history();
}
